Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | $(document).ready(function(){ |
||
2 | $('.amarkal-settings-button').on('click',function(e){ |
||
3 | e.preventDefault(); |
||
4 | var $button = $(this); |
||
5 | |||
6 | if(!$button.data('disabled')) |
||
7 | { |
||
8 | $('.amarkal-settings-button').data('disabled',true); |
||
9 | $button.addClass('processing'); |
||
10 | |||
11 | Amarkal.settings[$button.val()](function(){ |
||
|
|||
12 | $button.removeClass('processing'); |
||
13 | $('.amarkal-settings-button').data('disabled',false); |
||
14 | }); |
||
15 | } |
||
16 | }); |
||
17 | }); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.